package com.pets.dao;

import com.pets.entity.Appointment;
import com.pets.vo.AppointmentVO;
import com.pets.vo.UserAdoptRecodeVO;
import com.pets.vo.UserCoverAdoptRecodeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppointmentMapper {
    int deleteByPrimaryKey(Integer apid);

    int insert(Appointment record);

    int insertSelective(Appointment record);

    Appointment selectByPrimaryKey(Integer apid);

    int updateByPrimaryKeySelective(Appointment record);

    int updateByPrimaryKey(Appointment record);

    List<AppointmentVO> getUserAppointmentUnfinishedByuId(int uId);

    List<UserAdoptRecodeVO> getUserAdoptRecode(@Param("uId") int uId);

    List<UserCoverAdoptRecodeVO> getUserCoverAdoptRecode(@Param("uId") int uId);
}